class Calcucien:
    def __init__(self):
        print "<<<Calculadora Cientifica>>>"

        
    def menu(self):
        print "oprima una funcion"

        print "sen - cos - tan - exp - pi - log - ^2 - ^n"
        
    def opc(self):
        a = raw_input()
        if a == 'sen':
            print "seno-Digite un numero"
            b = raw_input()
            b = int (b) * 0.015
            print b

            
        if a == 'cos':
            print "coseno-Digite un numero"
            b = raw_input()
            b = int (b) * 0.999
            print b

            
        if a == 'tan':            
            print "tangente-Digite un numero"
            b = raw_input()
            b = int (b) * 0.017
            print b
 
            
        if a == 'exp':
            print "exponente-Digite un numero"
            b = raw_input()
            c = raw_input("Elevado a la: ")
            b = b ** 6 
            
        if a == 'pi':
            print "pi"
            b = raw_input()
            b = int (b) * 3.141
            print b

            
        if a == 'log':
            print "logaritmo-Digite un numero"
            b = raw_input()

        if a == '^2':
            print "Potencia a la 2"
            b = raw_input()
            b = int (b) ** 2 
            print b

        if a == '^n':
            print "Potencia a la n"
            print "Numero a elevar:"
            b = raw_input()
            print "Potencia:"
            c = raw_input()
            b = int (b) ** int (c)
            print b


#inicio
cienty = Calcucien()
cienty.menu()
cienty.opc()

